/*
Title: Practica 1 - Hola Mundo en ARM ASSEMBLY     Filename: holamundo.s
Author: Gutierrez Patiño Dylcia          Date: 23 - Feb - 2017
Description: HOLA MUNDO en ARM Assembly 
Input: - 
Output: HOLA MUNDO to console

*/
@ holamundo.s
@ a template for asm programs
.data            @store string and length in 2 variables
msg:
    .ascii "Hello World in ARM by Dylcia\n"
len = . - msg

.globl    _start
.section .text
_start:
mov r0, $1
ldr r1, =msg     @pointer string to be printed in r1
ldr r2, =len     @length of string in r2
mov r7, $4       @prepare to output to console 
swi $0           @wake kernel

mov r0, $0       @set the return value to 0
mov r7, $1       @exit syscall
svc $0           @wake kernel
